IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)

  #
  # Add tests, with the data
  #
  IF (VTK_DATA_ROOT)
    FOREACH ( tfile
      gaussian
      TestBunykRayCastFunction
      TestFixedPointRayCasterLinear
      TestFixedPointRayCasterNearest
      TestFixedPointRayCasterLinearCropped
      TestFixedPointRayCasterNearestCropped
      TestLODProp3D
      TestPTZSweep
      volRCClipPlanes
      volRCCropRegions
      volRCRotateClip
      volTM2DCropRegions
      volTM2DRotateClip
      volTM3DCompressedCropRegions
      volTM3DCropRegions
      volTM3DRotateClip
      VolumeOutlineSource
      VolumeOutlineSourceClipped
      VolumePicker
      VolumePickerCrop
    )
      ADD_TEST(${tfile}-image ${VTK_EXECUTABLE}
        ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
        ${VTK_SOURCE_DIR}/VolumeRendering/Testing/Tcl/${tfile}.tcl
        -D ${VTK_DATA_ROOT}
        -V Baseline/VolumeRendering/${tfile}.png
        -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
    ENDFOREACH( tfile )
    IF(VTK_USE_TK)
      ADD_TEST(imageCursor3D-image ${VTK_EXECUTABLE}
        ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
        ${VTK_SOURCE_DIR}/VolumeRendering/Testing/Tcl/cursor3D.tcl
        -D ${VTK_DATA_ROOT}
        -T ${VTK_BINARY_DIR}/Testing/Temporary
        -V Baseline/VolumeRendering/cursor3D.png
        -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
      IF (VTK_USE_VOLUMEPRO_1000)
        ADD_TEST(imageCursor3DVP-image ${VTK_EXECUTABLE}
          ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
          ${VTK_SOURCE_DIR}/VolumeRendering/Testing/Tcl/cursor3DVP.tcl
          -D ${VTK_DATA_ROOT}
          -T ${VTK_BINARY_DIR}/Testing/Temporary
          -V Baseline/VolumeRendering/cursor3D.png
          -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
      ENDIF (VTK_USE_VOLUMEPRO_1000)
    ENDIF(VTK_USE_TK)
    IF (VTK_USE_VOLUMEPRO_1000)
      ADD_TEST(gaussianVP-image ${VTK_EXECUTABLE}
        ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
        ${VTK_SOURCE_DIR}/VolumeRendering/Testing/Tcl/gaussianVP.tcl
        -D ${VTK_DATA_ROOT}
        -V Baseline/VolumeRendering/gaussianVP.png
        -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
      ADD_TEST(volVPClipPlanes-image ${VTK_EXECUTABLE}
        ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
        ${VTK_SOURCE_DIR}/VolumeRendering/Testing/Tcl/volVPClipPlanes.tcl
        -D ${VTK_DATA_ROOT}
        -V Baseline/VolumeRendering/volVPClipPlanes.png
        -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
      ADD_TEST(volVPCropRegions-image ${VTK_EXECUTABLE}
        ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
        ${VTK_SOURCE_DIR}/VolumeRendering/Testing/Tcl/volVPCropRegions.tcl
        -D ${VTK_DATA_ROOT}
        -V Baseline/VolumeRendering/volVPCropRegions.png
        -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
      ADD_TEST(volVPGradientOpacity-image ${VTK_EXECUTABLE}
        ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
        ${VTK_SOURCE_DIR}/VolumeRendering/Testing/Tcl/volVPGradientOpacity.tcl
        -D ${VTK_DATA_ROOT}
        -V Baseline/VolumeRendering/volVPGradientOpacity.png
        -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
      ADD_TEST(volVPMipmap-image ${VTK_EXECUTABLE}
        ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
        ${VTK_SOURCE_DIR}/VolumeRendering/Testing/Tcl/volVPMipmap.tcl
        -D ${VTK_DATA_ROOT}
        -V Baseline/VolumeRendering/volVPMipmap.png
        -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
    ENDIF (VTK_USE_VOLUMEPRO_1000)
  #
  # If we do not have the data, still run the tests that we can
  #
  ELSE (VTK_DATA_ROOT)
  ENDIF (VTK_DATA_ROOT)

ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)

ADD_TEST(PrintSelf-VolumeRendering ${TCL_TCLSH}
         ${VTK_SOURCE_DIR}/Common/Testing/Tcl/PrintSelfCheck.tcl  
         ${VTK_SOURCE_DIR}/VolumeRendering)

ADD_TEST(TestSetObjectMacro-VolumeRendering ${TCL_TCLSH}
         ${VTK_SOURCE_DIR}/Common/Testing/Tcl/FindString.tcl
         "${VTK_SOURCE_DIR}/VolumeRendering/vtk\\\\*.h"
         "vtkSetObjectMacro"
         )
